package com.shinbada.modules.sys.entity;

import com.shinbada.core.persistence.DataEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotNull;

/**
 * @author initcap
 * @date Created in 2020/10/6 12:30.
 */
@Data
@ToString
@ApiModel("岗位实体")
public class Post extends DataEntity<Post> {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty("岗位名称")
    private String name;
    @ApiModelProperty("岗位编码")
    private String code;
    @ApiModelProperty("岗位类型")
    private String type;
    @ApiModelProperty("岗位状态")
    private String status;
    @NotNull(message = "岗位排序不能为空")
    @ApiModelProperty("岗位排序")
    private Integer sort;

    public Post() {
        super();
    }

    public Post(String id) {
        super(id);
    }

}
